package com.seawaterbt.ssm.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.seawaterbt.ssm.config.DataSource;
import com.seawaterbt.ssm.config.DataSourceEnum;
import com.seawaterbt.ssm.entity.ResultInfo;
import com.seawaterbt.ssm.mapper.ResultInfoMapper;
import com.seawaterbt.ssm.service.IResultInfoService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ycc
 * @since 2019-10-28
 */
@Service
public class ResultInfoServiceImpl extends ServiceImpl<ResultInfoMapper, ResultInfo> implements IResultInfoService {

    @DataSource(DataSourceEnum.DB2)
    @Override
    public boolean saveOrUpdate(ResultInfo entity) {
        return super.saveOrUpdate(entity);
    }
    @DataSource(DataSourceEnum.DB2)
    @Override
    public List<ResultInfo> list(Wrapper<ResultInfo> queryWrapper) {
        return super.list(queryWrapper);
    }
    @DataSource(DataSourceEnum.DB2)
    @Override
    public boolean save(ResultInfo entity) {
        return super.save(entity);
    }
}
